/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package espe.ccsoft.models;

import espe.ccsoft.models.clavesforaneas.PermisoRolPK;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

/**
 *
 * @author misahaelfernandez
 */
@Entity
public class PermisoRol implements Serializable{
    @EmbeddedId
    protected PermisoRolPK permiso_rol;

    public PermisoRolPK getPermiso_rol() {
        return permiso_rol;
    }

    public void setPermiso_rol(int id_permiso, int id_rol) {
        this.permiso_rol = new PermisoRolPK(id_permiso, id_rol);
    }
    
    public void setPermiso_rol(PermisoRolPK permiso_rol) {
        this.permiso_rol = permiso_rol;
    }    
}
